package com.li.shanlin;

/**
 * @author liyinlong
 *
 * 2017年5月3日下午1:50:29
 */
public class Duoxiancheng {

	
	public static void main(String[] args) {
		ClassLoader c = ClassLoader.getSystemClassLoader();
		Class dd = null;
		try {
			dd = c.loadClass("com.li.shanlin.Bank");
			java.lang.reflect.Field[] fs = dd.getDeclaredFields();
			for (java.lang.reflect.Field field : fs) {
				System.out.println(field.toString());
			}
			try {
				Object o = dd.newInstance();
				System.out.println(o.toString());
			} catch (InstantiationException | IllegalAccessException e) {
				// TODO Auto-generated catch block
				e.printStackTrace();
			}
		} catch (ClassNotFoundException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}

	}

}
